package junmo.s3caesar.mandu.nhkradionews.alert;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class NewsAlertServiceReceiver extends BroadcastReceiver {

    private static final String CLASSTAG = NewsAlertServiceReceiver.class.getSimpleName();

    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
        	Log.v(CLASSTAG, "onReceive() / ACTION_BOOT_COMPLETED");
            context.startService(new Intent(context, NewsAlertService.class));
        }
    }
    
}
